<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript">
$(document).ready(function(){

});

</script>
<style type="text/css">

</style>

<table width="100%" border="0" cellspacing="0" cellpadding="0"
	align="center" >
	<tr>
		<td valign="top" align="center">
			<TABLE cellpadding="0" cellspacing="0" width="100%">
				<TR>
					<TD>

						<table cellspacing="0" cellpadding="0" border="0" width="100%"
							style="margin: 20px 0px 4px 0px">
							<tr valign="bottom">
								<td></td>
								<td align="right"><a
									href="./ubdmg0102Q.do?p_id=${param.p_id }&brd_no=${param.brd_no}"
									class="ebbaord-default"><img
										src='/usr/images/ic-write.gif' border='0'
										vspace='0' alt="쓰기"></a></td>
							</tr>
						</table> <!-- list -->
						<table cellspacing="0" cellpadding="0" border="0" width="100%"
							id="tb_lst2" style="margin: 0 19 0 0">
							<tr>
								<td colspan="5" height="1" class="css_line"></td>
							</tr>
							<tr class="css_title">
								<td width="80" align="center" class="css_title">NO</td>
								<td align="center" class="css_title">TITLE</td>
								<td width="100" align="center" class="css_title">WRITER</td>
								<td width="75" align="center" class="css_title">DATE</td>
								<td width="80" align="center" class="css_title">HIT</td>
							</tr>
							<tr>
								<td colspan="5" height="1" class="css_line"></td>
							</tr>
<c:if test="${noticeList !=null && fn:length(noticeList)>0 }">
	<c:forEach var="map" items="${noticeList}" varStatus="status">
							<tr class="css_default">
								<td class="css_default" align="center"><A
									HREF="./ubdmg0107Q.do?p_id=${param.p_id }&brd_no=${param.brd_no }&bd_no=${map.bd_no}"
									class="css_default_text"><img alt="공지" src="/usr/images/notice_img.gif" style="vertical-align: middle;" border="0"></A></td>
								<td class="css_default" style="text-align: left;"><nobr>
										<A
											HREF="./ubdmg0107Q.do?p_id=${param.p_id }&brd_no=${param.brd_no }&bd_no=${map.bd_no}"
											class="css_default_text">${map.bd_title }<c:if test="${!empty map.cmt_cnt && 0 != map.cmt_cnt}">(${map.cmt_cnt })</c:if></A>
									</nobr></td>
								<td class="css_default" align="center">${map.bd_name }</td>
								<td class="css_default" align="center">${map.reg_dt }</td>
								<td class="css_default" align="center">${map.bd_hit }</td>
							</tr>
							<tr>
								<td colspan="5" height="1" class="css_line"></td>
							</tr>
	</c:forEach>
</c:if>
<c:if test="${list !=null && fn:length(list)>0 }">
	<c:forEach var="map" items="${list}" varStatus="status">
							<tr class="css_default">
								<td class="css_default" align="center"><A
									HREF="./ubdmg0107Q.do?p_id=${param.p_id }&brd_no=${param.brd_no }&bd_no=${map.bd_no}"
									class="css_default_text">${paginationInfo.nowCnt -status.index}</A></td>
								<td class="css_default" style="text-align: left;"><nobr>
<c:if test="${'Y'==map.secret_yn }">
										<A HREF="./ubdmg0110Q.do?p_id=${param.p_id }&brd_no=${param.brd_no }&bd_no=${map.bd_no }&type=3"
											class="css_default_text">${map.bd_title }(비밀글)<c:if test="${!empty map.cmt_cnt && 0 != map.cmt_cnt}">(${map.cmt_cnt })</c:if></A>
</c:if>
<c:if test="${'Y'!=map.secret_yn }">
										<A HREF="./ubdmg0107Q.do?p_id=${param.p_id }&brd_no=${param.brd_no }&bd_no=${map.bd_no}"
											class="css_default_text">${map.bd_title }<c:if test="${!empty map.cmt_cnt && 0 != map.cmt_cnt}">(${map.cmt_cnt })</c:if></A>
</c:if>

<!--  -->
									</nobr></td>
								<td class="css_default" align="center">${map.bd_name }</td>
								<td class="css_default" align="center">${map.reg_dt }</td>
								<td class="css_default" align="center">${map.bd_hit }</td>
							</tr>
							<tr>
								<td colspan="5" height="1" class="css_line"></td>
							</tr>
	</c:forEach>
</c:if>

						</table> <!-- 메뉴출력 -->
						<table width="100%" border=0 cellspacing="2" cellpadding="4"
							STYLE="font: 10pt" align="center">
							<tr>
								<td colspan="2" class="pagingTd">
								${pageHtml }
								</td>
							</tr>
							<tr>
								<td valign="top" align="left" style="vertical-align: middle;">
									<!-- search -->
									<div class="search">
										<table cellspacing="4" cellpadding="0" border="0">
											<form method="get" name="frmSearch" action="./ubdmg0101Q.do">
												<tr>
													<td>
													<input type="hidden" name="brd_no" value="${param.brd_no }">
													<input type="hidden" name="p_id" value="${param.p_id }">
													<select name="src_condition" class="css_select">
															<option value="1" <c:if test="${'1'==param.src_condition }">selected="selected"</c:if>>제목</option>
															<option value="2" <c:if test="${'2'==param.src_condition }">selected="selected"</c:if>>이름</option>
															<option value="3" <c:if test="${'3'==param.src_condition }">selected="selected"</c:if>>제목 + 내용</option>
													</select>
													
													</td>
													<td><input type="text" NAME="src_data" value="${param.src_data }"
														class="css_input" style="width: 208px"></td>
													<td><input type="image"
														src="/usr/images/btn_srh.gif"
														align="absmiddle" border="0" alt="검색"></td>
												</tr>
											</form>
										</table>
									</div>

								</td>
								<td valign="top" align="right">&nbsp;</td>
							</tr>
						</table>
					</TD>
				</TR>
			</TABLE>
		</td>
	</tr>
</table>